<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>编码管理</title>
<#include "/WEB-INF/content/module-edit.html">
<script type="text/javascript">
	$(function() {
		var bc_code=$("#bc_code").val();
		$('#bc_code').validatebox({
			required : true,
			validType : [
				"bc_code",
				'remote["${request.contextPath}/basecode/${_parent}/validate/code","bc_code", "'+bc_code+'"]' 
			]
		});
	});
</script>
</head>
<body class="easyui-layout">
	<div region="north" style="background-color: #eee; padding: 5px; overflow: hidden;" border="false">
		<#if object.bc_code?exists&&object.bc_code!="">
		<@auth code="base:parameter:update">
		<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-add" style="border: 1px solid #ccc;" onclick="javascript:save();">保存</a>
		</@auth> 
		<#else> 
		<@auth code="base:parameter:create">
		<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-add" style="border: 1px solid #ccc;" onclick="javascript:save();">保存</a>
		</@auth>
		</#if>
		<a href="javascript:void(0);" class="easyui-linkbutton" plain="true" iconCls="icon-edit" style="border: 1px solid #ccc;" onclick="javascript:cancel();">关闭</a>
	</div>
	<div region="center">
		<div id="p" class="easyui-panel" style="background: #fafafa; padding: 10px" fit="true" toolbar="#toolbar">
			<form id="form" method="post">
				<table class="form" cellspacing="0" style="width: 100%">
					<tbody style="border: 1px solid #ccc;">
						<tr style="display: none;">
							<td colspan="6">
								<input id="_id" value="${(object.bc_code)!}">
								<input id="bc_parent_code" name="bc_parent_code" value="${(object.bc_parent_code)!}">
							</td>
						</tr>
						<tr>
							<td class="label">编码：</td>
							<td><#if object.bc_code?exists&&object.bc_code!=""> <#assign readonly="readonly"> </#if> <input id="bc_code" name="bc_code" value="${(object.bc_code)!}" style="width: 95%;" ${readonly!}  /> </td>
							<td class="validate">*</td>
							<td class="label">描述：</td>
							<td><input id="bc_description" name="bc_description" value="${(object.bc_description)!}" style="width: 95%;" class="easyui-validatebox" required="required" /></td>
							<td class="validate">*</td>
						</tr>
					</tbody>
				</table>
			</form>
		</div>
	</div>
</body>
</html>